<extend name="Public/base"/>
<block name="sidebar">
    <include file="sidemenu"/>
</block>
<block name="body">
    <div class="main-title">
        <h2>
            图册管理
        </h2>
    </div>
    <div class="cf">
        <div class="fl">
            <a class="btn" href="{:U('album_edit')}">新 增</a>
        </div>
    </div>
    <!-- 数据表格 -->
    <div class="data-table">
        <table class="">
            <thead>
            <tr>
                <th class="">编号</th>
                <th class="">图册标题</th>
                <th>创建时间</th>
                <th>状态</th>
                <th class="">操作</th>
            </tr>
            </thead>
            <tbody>
            <volist name="list" id="vo">
                <tr>
                    <td>{$vo.id}</td>
                    <td>{$vo.title}</td>
                    <td>{$vo.createtime|date='Y-m-d H:i',###}</td>
                    <td>
                        <eq name="vo.status" value="1">已展示
                            <else/>
                            未展示
                        </eq>
                    </td>
                    <td>
                        <a href="{:U('album_edit',array('id'=>$vo['id']))}">编辑</a>
                        <eq name="vo.status" value="1">
                            <a href="{:U('album_active',array('id'=>$vo['id'],'status'=>'0'))}"
                               class="confirm ajax-get">禁用</a>
                            <else/>
                            <a href="{:U('album_active',array('id'=>$vo['id'],'status'=>'1'))}"
                               class="confirm ajax-get">启用</a>
                        </eq>
                        <a href="{:U('album_del',array('id'=>$vo['id']))}" class="confirm ajax-get">删除</a>
                    </td>
                </tr>
            </volist>
            </tbody>
        </table>
    </div>
    <!-- 分页 -->
    <div class="page">
        {$page}
    </div>
    </div>

</block>